#include "realplus.h"

RealPlus::RealPlus() : RealOperation() {
}

RealPlus::~RealPlus() {
}

char RealPlus::getSign() {
    return '+';
}

void RealPlus::evaluateMe(LinkedList<double>& evaluationStack, const double* positionArray) {
    assert(evaluationStack.getSize()>1);
    evaluationStack.getSecondLastElement()+=evaluationStack.getElementAtEnd();
    delete &evaluationStack.pop();
}
